<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>日志管理</title>
<link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
<link href="/widget/iconfont/iconfont.css" rel="stylesheet" />
 {cssjs}
<link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
</head>

<body>
<div class="container-fluid larry-wrapper">
     <div class="row">
         <div class="col-xs-12 col-sm-12 col-md-12">
             <!--头部搜索-->
             <section class="panel panel-padding">
                    <form class="layui-form" method="post">
                        <div class="layui-form">
							<div class="layui-form-item">
								<div class="layui-input-inline" style="width:120px;">
								  <select class="" logtype="{logtype}" id="logtype" name="logtype">
                                     <option value=''>选择类型</option>
							      </select>
								</div>
								<div class="layui-input-inline">
								  <input class="layui-input" id="s_name" name="s_name" value="{s_name}" placeholder="用户名">
								</div>
								<div class="layui-input-inline">
                                  <input type="button" lay-submit class="layui-btn" lay-filter="search" id="btn_search" value="查找"/>
                                </div>
							  </div>    
                        </div>
                    </form>
            </section>

            <!--列表-->
                <section class="panel panel-padding">
				    <div class="group-button">
                        <button class="layui-btn layui-btn-small layui-btn-danger ajax-all" id="btn_del">
                            <i class="iconfont">&#xe626;</i> 删除
                        </button>
                    </div>
                    <div class="layui-form">
                        <table id="example" class="layui-table lay-even">
                            <thead>
                                <tr>
                                    <th width="20" style="text-align:center;"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check" lay-skin="primary"></th>
                                    <th width="110" style="text-align:center;">用户姓名</th>
									<th width="150" style="text-align:center;">时间</th>
                                    <th width="240" style="text-align:center;">IP地址</a></th>
									<th width="120" style="text-align:center;">日志类型</th>
									<th width="80" style="text-align:center;">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!-- START list -->  
                                <tr>
                                    <td style="text-align:center;">
                                    <input type="checkbox" name="checkbox" lay-skin="primary" value="{id}"/>
                                    </td>
                                    <td style="text-align:center;">{truename}</td>
                                    <td style="text-align:center;">{time}</td>
									<td style="text-align:center;">{ip_addr}</td>
									<td style="text-align:center;">{name}</td>
                                    <td style="text-align:center;">
                                        <button class="layui-btn layui-btn-mini layui-btn-danger ajax" data-opt="del"  data-id="{id}">
                                            <i class="iconfont">&#xe626;</i>删除
                                        </button></td>
                                    </td>
                                </tr>
                                <!-- END list --> 
                            </tbody>
                        </table>
                    </div>
                </section>
				<div class="text-right" id="page" style="margin-top:-25px;">
					  <ul class="pagination pull-right">
                       {page}
					  </ul>
                </div>
         </div>
     </div>
</div>
   {jsmodel}
   <script type="text/javascript">
        layui.use('system_log');
		$().ready(function(){
           $("#btn_search").bind("click",function(){   
                var nm=$("#s_name").val();
				var logtype=$("#logtype").val();
                location.href="?t=system_log&s_name="+nm+"&logtype="+logtype;
            }); 
        });
    </script>
</body>
</html>
